﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;
using System.Reflection;
using System.IO;

namespace Game.Surface
{
    public class ExplosionImages
    {
        public static BitmapImage Image1
        {
            get { return GetImage("bigsplode_13390_001"); }
        }

        public static BitmapImage Image2
        {
            get { return GetImage("bigsplode_13390_002"); }
        }

        public static BitmapImage Image3
        {
            get { return GetImage("bigsplode_13390_003"); }
        }

        public static BitmapImage Image4
        {
            get { return GetImage("bigsplode_13390_004"); }
        }

        public static BitmapImage Image5
        {
            get { return GetImage("bigsplode_13390_005"); }
        }

        public static BitmapImage Image6
        {
            get { return GetImage("bigsplode_13390_006"); }
        }

        public static BitmapImage Image7
        {
            get { return GetImage("bigsplode_13390_007"); }
        }

        public static BitmapImage Image8
        {
            get { return GetImage("bigsplode_13390_008"); }
        }

        public static BitmapImage Image9
        {
            get { return GetImage("bigsplode_13390_009"); }
        }

        public static BitmapImage Image10
        {
            get { return GetImage("bigsplode_13390_010"); }
        }

        public static BitmapImage Image11
        {
            get { return GetImage("bigsplode_13390_011"); }
        }

        public static BitmapImage Image12
        {
            get { return GetImage("bigsplode_13390_012"); }
        }

        public static BitmapImage Image13
        {
            get { return GetImage("bigsplode_13390_013"); }
        }

        public static BitmapImage Image14
        {
            get { return GetImage("bigsplode_13390_014"); }
        }

        public static BitmapImage Image15
        {
            get { return GetImage("bigsplode_13390_015"); }
        }

        public static BitmapImage Image16
        {
            get { return GetImage("bigsplode_13390_016"); }
        }

        public static BitmapImage Image17
        {
            get { return GetImage("bigsplode_13390_017"); }
        }

        public static BitmapImage Image18
        {
            get { return GetImage("bigsplode_13390_018"); }
        }

        public static BitmapImage GetImage(string name)
        {
            BitmapImage image = new BitmapImage();
            string uri =
                @"Game.Surface.Images."
                + name + ".png";
            Assembly a = Assembly.GetExecutingAssembly();
            Stream stream = a.GetManifestResourceStream(uri);
            image.BeginInit();
            image.StreamSource = stream;
            image.EndInit();

            return image;
        }
    }
}
